package cn.com.connext.scrm.repository.master;


import cn.com.connext.scrm.domain.master.MdmHelpActivity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface MdmHelpActivityRepository extends JpaRepository<MdmHelpActivity, Long>, JpaSpecificationExecutor {
    @Modifying
    @Query(value ="update mdm_help_activity set is_open = :isOpen where id = :id",nativeQuery = true)
    void updateStatus(@Param("id") Long id, @Param("isOpen")Integer isOpen);
}
